import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

export default {
  bannerCrate: data => {
    return http.request<any>("post", baseUrlApi("/banner"), { data });
  },
  bannerPage: params => {
    return http.request<any>("get", baseUrlApi("/banner"), { params });
  },
  bannerDelete: data => {
    return http.request<any>("delete", baseUrlApi("/banner"), { data });
  },
  bannerUpdate: data => {
    return http.request<any>("put", baseUrlApi("/banner"), { data });
  },
  bannerDataPage: params => {
    return http.request<any>("get", baseUrlApi("/bannerData"), { params });
  },
  bannerDataCreate: data => {
    return http.request<any>("post", baseUrlApi("/bannerData"), { data });
  },
  bannerDataUpdate: data => {
    return http.request<any>("put", baseUrlApi("/bannerData"), { data });
  },
  bannerDataDelete: data => {
    return http.request<any>("delete", baseUrlApi("/bannerData"), { data });
  }
};
